//根据会员编码获取测量数据列表
export const queryByMemberCodeApi = async (memberCode) => {
	const {
		data: res
	} = await uni.$http.get(`/api/user/measure/queryByMemberCode/${memberCode}`)
	return res
}

//新增修改
export const saveOrUpdateApi = async (data) => {
	const {
		data: res
	} = await uni.$http.post(`/api/user/measure/saveOrUpdate`, data)
	return res
}

// 查打卡记录和血压
export const findHealthDataListApi = async (memberCode) => {
	const {
		data: res
	} = await uni.$http.get(`/api/face/findHealthDataList/${memberCode}`)
	return res
}

// /memberResidence/listCommunity
// 小区名称
export const listCommunityApi = async (projectCode, enterpriseCode) => {
	const {
		data: res
	} = await uni.$http.get(`/api/memberResidence/listCommunity/${projectCode}/${enterpriseCode}`)
	return res
}


// 楼号
export const listFloorApi = async (projectCode, communityCode) => {
	const {
		data: res
	} = await uni.$http.get(`/api/memberResidence/listFloor/${projectCode}/${communityCode}`)
	return res
}

// 修改会员包含基本信息,楼号信息,健康信息
export const modifyMemberApi = async (data) => {
	const {
		data: res
	} = await uni.$http.post(`/api/miniApp/modifyMember`, data)
	return res
}
// 会员详情包含基本信息,住宿信息,健康信息
export const getMemberDetailApi = async (memberCode) => {
	const {
		data: res
	} = await uni.$http.get(`/api/miniApp/getMemberDetail/${memberCode}`)
	return res
}